package ui.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.RulesBean;

import java.util.List;

public class RulesAdapter extends BaseQuickAdapter<RulesBean, BaseViewHolder> {

    public RulesAdapter() {
        super(R.layout.item_rules);
    }

    @Override
    protected void convert(BaseViewHolder helper, RulesBean item) {
        helper.setText(R.id.tv_title, item.getTypeName())
                .setText(R.id.tv_des, item.getIntegration() + "积分");
    }
}
